﻿<%@ Page Language="c#" CodeBehind="Error_Lists.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.testing.Error_Lists" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
<%--            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>--%>

                <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/testing/TManage.aspx">Manage Testing</a>
                    &nbsp;>&nbsp;
                    <a href="#">Error List</a>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='5' cellspacing='0' border='0' class="tb_search" >

                        <tr>
                            <td class="title">Project Code :</td>
                            <td class="input" colspan="2">
                                <asp:HiddenField ID="hidProjectID" runat="server" />
                                <telerik:RadTextBox ID="lbProject_Code" runat="server" Width="200" ReadOnly="true" ></telerik:RadTextBox>                           
                            </td>
                            
                            <td class="title" colspan="2">Project Name :</td>
                            <td class="input" colspan="3">
                            <telerik:RadTextBox ID="lbProject_Name" runat="server" Width="500" ReadOnly="true" ></telerik:RadTextBox>
                          

                            </td>
                        </tr>

                        <tr>
                            <td class="title">Status :</td>
                            <td class="input" >
                                <telerik:RadTextBox ID="lbStatus" runat="server" ReadOnly="true" Width="50" ></telerik:RadTextBox>

                            </td>
                            
                        </tr>
                         <tr>
  
                                    <td class="title">Total Errors :</td>
                                    <td class="input" >
                                        
                                        <telerik:RadTextBox ID="lbTotal_Errors" runat="server" ReadOnly="true" Width="50" ></telerik:RadTextBox>
                                    </td>
                            
                                    <td class="title">Open :</td>
                                    <td class="input">
                                        <telerik:RadTextBox ID="lbOpen" runat="server" ReadOnly="true" Width="50" ></telerik:RadTextBox>
                                    
                                    </td>

                                    <td class="title">Pending :</td>
                                    <td class="input">
                                        <telerik:RadTextBox ID="lbPending" runat="server" ReadOnly="true" Width="50"  ></telerik:RadTextBox>
                                    </td>

                            
                                    <td class="title">Fixed :</td>
                                    <td class="input">
                                        <telerik:RadTextBox ID="lbFixed" runat="server" ReadOnly="true" Width="50" ></telerik:RadTextBox>
                                    </td>
                                </tr>
                    </table>
                </div>
                    <br />

                </div>
                <br />
                <div class="gSDMS_Grid">
                    <asp:GridView ID="grdError_Lists" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="20" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                        CssClass="css_grid" DataKeyNames=""
                        >                        
                        <AlternatingRowStyle CssClass='AlternatingRowStyle' />
                        <EditRowStyle CssClass='EditRowStyle' />
                        <FooterStyle CssClass='FooterStyle' />
                        <HeaderStyle CssClass='HeaderStyle' />
                        <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" />
                        <RowStyle CssClass='RowStyle' />
                        <SelectedRowStyle CssClass='SelectedRowStyle' />
                   
                        <Columns >
                            <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                <ItemTemplate><%# grdError_Lists.PageIndex * grdError_Lists.PageSize + grdError_Lists.Rows.Count + 1%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Error Code" ItemStyle-CssClass="text" SortExpression='Error_Code' ItemStyle-Width="400">
                                <ItemTemplate><%#Eval("Error_Code")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="Create Date" ItemStyle-CssClass="date" ItemStyle-Width="80" SortExpression='Create_Date' >
                                <ItemTemplate><%# Eval("Create_Date").ToString() == "" ? "" : Convert.ToDateTime(Eval("Create_Date")).ToString("dd/MM/yyyy")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="Descripton Error" ItemStyle-CssClass="text" SortExpression='Descripton' >
                                <ItemTemplate><%#Eval("Descripton")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="Status" ItemStyle-CssClass="text" ItemStyle-Width="50" SortExpression='Status'>
                                <ItemTemplate><%#Eval("Status")%></ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                            
                            
                            <asp:TemplateField HeaderText="Sender" ItemStyle-CssClass='text' ItemStyle-Width="50" SortExpression="Sender">
                                <ItemTemplate><%# Eval("Sender")%></ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>

                            <asp:TemplateField HeaderText="Assigned To" ItemStyle-CssClass='text' ItemStyle-Width="80" SortExpression="Assigned_To">
                                <ItemTemplate><%# Eval("Assigned_To")%></ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>

                            <%--------%>
                                                                
                            <asp:TemplateField HeaderText="Update" ItemStyle-CssClass="edit-del" Visible="false" ItemStyle-Width="40">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btn_Update" runat="server" CommandName="fix"  CommandArgument='<%# Eval("Test_Error_ID") %>' CssClass="delete"  ToolTip="edit" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/edit.png"  ValidationGroup="1110000"  Visible="false"/>
                                    <%--<a class="edit" href='<%# "/gsdmsmodule/testing/Testing_Fix.aspx?pageid=29&id=" + Eval("Test_Error_ID") %>' title="Edit">&nbsp;</a>--%>
                                </ItemTemplate></asp:TemplateField>

                           <asp:TemplateField HeaderText="Close" ItemStyle-CssClass="edit-del" Visible="false" ItemStyle-Width="40">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btn_Close" runat="server" CommandName="close" CommandArgument='<%# Eval("Test_Error_ID") %>' CssClass="delete"  ToolTip="closeError" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png"  ValidationGroup="1110000" />
                                    <%--<a class="edit" href='<%# "/gsdmsmodule/testing/BrwError.aspx?pageid=29&id=" + Eval("Test_Error_ID") %>' title="Edit">&nbsp;</a>  --%>                                  
                                </ItemTemplate></asp:TemplateField>
                        </Columns>

                        <EmptyDataTemplate>
                            <div class="div_dataEmpty">Data not found!</div>
                        </EmptyDataTemplate>
                    </asp:GridView>

                    <div style="display:none">
                        <telerik:RadGrid ID="hiddenGrid" GridLines="Both" runat="server">
                            <ExportSettings>
                                <Excel Format="Html" />
                            </ExportSettings>
                        </telerik:RadGrid>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='5' cellspacing='0' border='0' class="tb_search" >
                        <tr>
                                <td class="title"></td>
                                <td class="input"> <div class="div_AddNew div_Edit">
                                    <asp:Button ID="btnAdd_New" runat="server" CssClass="btn_01" Text="Add New" Visible="false"/>
                                </div>
                                </td>
                                <td class="input"> <div class="div_AddNew div_Edit">
                                    <asp:Button ID="btnCloseProject" runat="server" CssClass="btn_01" Text="Close" Visible="false" />
                                </div>
                                </td>
                               
                                <td class="input"><div class="div_AddNew div_Edit">
                                    <button id="btnBack" class="btn_01" type="reset" onclick="javascript:location.href='/gsdmsmodule/testing/TManage.aspx'">Back</button>
                                </div>
                                </td>
 
                        </tr>
                    </table>
                </div>
<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
